﻿using System;

namespace viBook.Models
{
    public abstract class Like
    {
        public int Id { get; set; }
        public int UserId { get; set; }
        public DateTime CreatedDate { get; set; }
    }

    public class ChapterLike : Like
    {
        public int ChapterId { get; set; }
        public virtual Chapter Chapter { get; set; }
    }
    public class BookLike : Like
    {
        public int BookId { get; set; }
        public virtual Book Book { get; set; }
    }
    public class BookCommentLike : Like
    {
        public int CommentId { get; set; }
        public virtual BookComment Comment { get; set; }
    } 
    public class ChapterCommentLike : Like
    {
        public int CommentId { get; set; }
        public virtual ChapterComment Comment { get; set; }
    }
}